import request from '../utils/request'


export function GetUserList(params) {
    return request.get('/api/users',{params})
}

export function update(id,data){
    console.log(data);
    return request.put(`/api/user/${id}`,data)
}

export function addUser(data){
    return request.post(`/api/adduser`,data)
}

export function deleteUser(id){
    return request.delete(`/api/remove/${id}`)
}
